package com.example.tranport.server.message;

import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.core.session.IoSession;

public interface ServerMessageService {

    public void start() throws Exception;

    public void stop() throws Exception;

    public void receive(IoSession ioSession, Object o) throws Exception;

    public void closeSession(IoSession ioSession) throws Exception;

    public void sessionIdle(IoSession ioSession, IdleStatus idleStatus) throws Exception;
}
